using System;
using System.Windows.Forms;

namespace test
{
	public partial class TableSizerOptionsForm : Form
    {
		public TableSizerOptionsForm()
        {
            InitializeComponent();
        }



        /// <summary>
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.IContainer components = null;

        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }

        #region Windows Form Designer generated code

        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.LabelTableWidth = new System.Windows.Forms.Label();
			this.LabelFixColumnWidths = new System.Windows.Forms.Label();
            this.TextBoxTableWidth = new System.Windows.Forms.TextBox();
			this.CheckBoxFixColumnWidths = new System.Windows.Forms.CheckBox();
            this.ButtonOK = new System.Windows.Forms.Button();
            this.SuspendLayout();
            // 
            // LabelTableWidth
            // 
            this.LabelTableWidth.AutoSize = true;
            this.LabelTableWidth.Location = new System.Drawing.Point(12, 21);
            this.LabelTableWidth.Name = "LabelTableWidth";
            this.LabelTableWidth.Size = new System.Drawing.Size(30, 13);
            this.LabelTableWidth.TabIndex = 0;
            this.LabelTableWidth.Text = "Size:";
            // 
            // TextBoxTableWidth
            // 
            this.TextBoxTableWidth.Location = new System.Drawing.Point(48, 18);
            this.TextBoxTableWidth.Name = "TextBoxTableWidth";
            this.TextBoxTableWidth.Size = new System.Drawing.Size(120, 20);
            this.TextBoxTableWidth.TabIndex = 1;
            this.TextBoxTableWidth.Text = "100%";

			//
			// LabelFixColumnWidths
			//
            this.LabelFixColumnWidths.AutoSize = true;
            this.LabelFixColumnWidths.Location = new System.Drawing.Point(12, 51);
            this.LabelFixColumnWidths.Name = "LabelFixColumnWidths";
            this.LabelFixColumnWidths.Size = new System.Drawing.Size(30, 13);
            this.LabelFixColumnWidths.TabIndex = 2;
            this.LabelFixColumnWidths.Text = "Fix Column Widths:";
            

			//
			// CheckBoxFixColumnWidths
			//
			this.CheckBoxFixColumnWidths.AutoSize = true;
			this.CheckBoxFixColumnWidths.Location = new System.Drawing.Point(150, 51);
            this.CheckBoxFixColumnWidths.Name = "CheckBoxFixColumnWidths";
            this.CheckBoxFixColumnWidths.Size = new System.Drawing.Size(30, 13);
			this.CheckBoxFixColumnWidths.TabIndex = 3;
            this.CheckBoxFixColumnWidths.Checked = true;

            // 
            // ButtonOK
            // 
            this.ButtonOK.Location = new System.Drawing.Point(210, 70);
            this.ButtonOK.Name = "ButtonOK";
            this.ButtonOK.Size = new System.Drawing.Size(60, 36);
            this.ButtonOK.TabIndex = 4;
            this.ButtonOK.Text = "OK";
            this.ButtonOK.UseVisualStyleBackColor = true;
			this.ButtonOK.Click += new System.EventHandler(this.ButtonOK_Click);
            // 
            // Form1
            // 
			this.AcceptButton = this.ButtonOK;
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(295, 120);
            this.Controls.Add(this.ButtonOK);
            this.Controls.Add(this.TextBoxTableWidth);
            this.Controls.Add(this.LabelTableWidth);
			this.Controls.Add(this.LabelFixColumnWidths);
			this.Controls.Add(this.CheckBoxFixColumnWidths);
            this.Name = "Form1";
            this.Text = "Table Sizer Options";
            this.ResumeLayout(false);
            this.PerformLayout();

        }

        #endregion

        private System.Windows.Forms.Label LabelTableWidth;
        private System.Windows.Forms.TextBox TextBoxTableWidth;
		private System.Windows.Forms.Label LabelFixColumnWidths;
        private System.Windows.Forms.CheckBox CheckBoxFixColumnWidths;
        private System.Windows.Forms.Button ButtonOK;


		//TODO: switch to real binding...
		public string TableWidth {
			get {
				return this.TextBoxTableWidth.Text;
			}
			set {
				this.TextBoxTableWidth.Text = value;
			}
		}

		public bool FixColumnWidths {
			get {
				return this.CheckBoxFixColumnWidths.Checked;
			}
			set {
				this.CheckBoxFixColumnWidths.Checked = value;
			}
		}



		private void ButtonOK_Click(object sender, EventArgs e)
        {
            this.DialogResult = System.Windows.Forms.DialogResult.OK;
        }

    }
}

